﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Model.DbEntity
{
    /// <summary>
    /// 文章内容表
    /// </summary>
    public class ArticleContent
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Comment("主键")]
        public Guid Id { get; set; }

        /// <summary>
        /// 文章id
        /// </summary>
        [Comment("文章id")]
        public Guid ArticleId { get; set; }

        /// <summary>
        /// 文章内容 Html
        /// </summary>
        [Comment("文章内容")]
        public string Content { get; set; }

        /// <summary>
        /// 文章最后更新时间
        /// </summary>
        [Comment("文章最后更新时间")]
        public DateTime? LastUpdateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Comment("创建人")]
        public Guid? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [Comment("更新人")]
        public Guid? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Comment("更新时间")]
        public DateTime? UpdateTime { get; set; }
    }
}
